<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — NARROW NO-BREAK SPACE and replaced element</title>
<meta name=assert content="There is no soft wrap opportunity between replaced elements and adjacent NARROW NO-BREAK SPACE">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-replaced-002-ref.html">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<style>
.test {
    width: 50px;
}
.red {
    position: absolute;
    color: red;
    z-index: -1;
    padding-left: 60px;
    padding-top: 40px;
}
</style>

<p>Test passes if there is no red.

<div class=red>&#8239;XX</div>

<div class=test><img src="" width=50 height=100>&#8239;<img src="" width=50 height=100></div>
